package com.lupan.tomcatStudy.javaStudy.chapter16.threadNotify;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/3/15 15:10
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        LockPojo lockPojo = new LockPojo();
        Thread thread = new VinThread("thread1", lockPojo);

//        new VinThread("thread2", lockPojo).start();
//        new VinThread("thread3", lockPojo).start();

        thread.start();

        Thread.sleep(2000);



        thread.notify();
        thread.notify();
        thread.notify();
        thread.notify();
    }
}
